package nc.ui.bd.mes.dxyapp.myswing.frames;

import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.border.EmptyBorder;

import nc.ui.bd.mes.dxyapp.table.CtlLogTab;
import nc.ui.bd.mes.dxyapp.table.EmployeeTable;

public class EmployeeOnlineFrame extends JFrame{
	private JPanel contentPane;
	private EmployeeTable table;
	private JScrollPane scrPanel;

	/**
	 * Create the frame.
	 */
	public EmployeeOnlineFrame(EmployeeTable table) {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
		int screenWidth=screenSize.width;
		int screenHeight=screenSize.height;
		setBounds((screenWidth-800)/2,(screenHeight-600)/2, 800, 600);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		this.table = table;
		table.setBounds(0,0,800,600);
		scrPanel = new JScrollPane(table);
		scrPanel.setBounds(0, 0,800,600);
		contentPane.add(scrPanel);
	}
}
